<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8"/>
    <title>变量：任务2</title>
    <link rel="stylesheet" href="https://roy-tian.github.io/learning-area/javascript/introduction-to-js-1/tasks/styles.css" />
  </head>

  <body>

    <section class="preview"></section>

  </body>
  <script>
    // 在下方编写代码

    let myName = '李雷';

    // 不要编写此行以下的代码！

    const section = document.querySelector('section');

    let para = document.createElement('p');
    para.textContent = myName;
    section.appendChild(para);
  </script>

</html>
